import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'  // element-ui
import './assets/css/globle.css'  // 全局样式
// import './assets/iconfont/iconfont.css'  // 字体图标
import axios from 'axios'

// 配置axios
axios.defaults.baseURL = 'http://127.0.0.1:5000/'

// 请求拦截token
axios.interceptors.request.use(config => {
  // 设置请求头
  config.headers.Authorization = window.localStorage.getItem('token')
  return config
})

Vue.prototype.$ajax = axios



Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
